]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
keyboard: _showLayoutItem is only defined if allowSettings.
authorAlban Browaeys <prahal@yahoo.com>
Fri, 3 Aug 2012 01:28:32 +0000 (03:28 +0200)
committerGiovanni Campagna <gcampagna@src.gnome.org>
Tue, 7 Aug 2012 14:50:07 +0000 (16:50 +0200)
Check Main.sessionMode.allowSettings is true before accessing the
actor item of _showLayoutItem.

https://bugzilla.gnome.org/show_bug.cgi?id=681101

js/ui/status/keyboard.js

index 4a3fdc704a7971937df334cf9f167e5a6b2f8218..900c81cd8542f3131a37a03146f5e72342dd12db 100644 (file)
@@ -178,7 +178,9 @@ const InputSourceIndicator = new Lang.Class({
     },
 
     setLockedState: function(locked) {
-        this._showLayoutItem.actor.visible = !locked;
+        if (Main.sessionMode.allowSettings) {
+            this._showLayoutItem.actor.visible = !locked;
+        }
         this.menu.setSettingsVisibility(!locked);
     },